$OpenBSD: patch-migration_kmail_CMakeLists_txt,v 1.2 2014/07/09 20:03:30 zhuk Exp $
Fix linking.
--- migration/kmail/CMakeLists.txt.orig	Thu May  8 12:42:54 2014
+++ migration/kmail/CMakeLists.txt	Sun May 18 21:03:46 2014
@@ -44,6 +44,9 @@ add_resource_iface( mixedmaildir/mixedmaildirresource.
 kde4_add_app_icon(kmail-migrator_srcs "${KDE4_ICON_DIR}/oxygen/*/apps/akonadi.png")
 kde4_add_executable(kmail-migrator ${kmail-migrator_srcs} )
 target_link_libraries(kmail-migrator
+  kmindexreader
+  maildir
+  akonadi-filestore
   ${KDEPIMLIBS_KMBOX_LIBS}
   ${KDEPIMLIBS_KMIME_LIBS}
   ${KDEPIMLIBS_KPIMUTILS_LIBS}
@@ -51,9 +54,6 @@ target_link_libraries(kmail-migrator
   ${KDEPIMLIBS_AKONADI_LIBS}
   ${KDE4_KDEUI_LIBS}
   ${KDE4_KIO_LIBS}
-  akonadi-filestore
-  maildir
-  kmindexreader
 )
 
 install(TARGETS kmail-migrator ${INSTALL_TARGETS_DEFAULT_ARGS})
